package com.wewins.fota.controller;

import com.wewins.fota.bean.bo.filter.FilterCond;
import com.wewins.fota.bean.dto.PageReq;
import com.wewins.fota.bean.dto.PageRst;
import com.wewins.fota.bean.dto.ResponseRst;

import javax.servlet.http.HttpServletRequest;

public interface BasicController<T, V extends FilterCond> {
    ResponseRst<PageRst<T>> queryAll(PageReq<V> pageReq);

    ResponseRst<T> queryById(long id);

    ResponseRst<T> insert(HttpServletRequest request, T inputParam);

    ResponseRst<Integer> deleteById(HttpServletRequest request, long id);

    ResponseRst<Integer> update(HttpServletRequest request, T inputParam);
}
